package bdqn.t09.service.impl;

import bdqn.t09.dao.AsUserMapper;
import bdqn.t09.pojo.AsUser;
import bdqn.t09.service.AsUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AsUserServiceimpl implements AsUserService{

    @Resource
    private AsUserMapper asUserMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return asUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AsUser record) {
        return asUserMapper.insert(record);
    }

    @Override
    public int insertSelective(AsUser record) {
        return asUserMapper.insertSelective(record);
    }

    @Override
    public AsUser selectByPrimaryKey(Long id) {
        return asUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(AsUser record) {
        return asUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AsUser record) {
        return asUserMapper.updateByPrimaryKey(record);
    }

    @Override
    public AsUser login(String usercode, String userpassword) {
        return asUserMapper.login(usercode,userpassword);
    }

    @Override
    public int updatePassword(AsUser asUser) {
        return asUserMapper.updatePassword(asUser);
    }

}
